package com.ruoyi.insurance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.insurance.mapper.DuringInsuranceEvaluateMapper;
import com.ruoyi.insurance.domain.DuringInsuranceEvaluate;
import com.ruoyi.insurance.service.IDuringInsuranceEvaluateService;

/**
 * 保中安全评测Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class DuringInsuranceEvaluateServiceImpl implements IDuringInsuranceEvaluateService 
{
    @Autowired
    private DuringInsuranceEvaluateMapper duringInsuranceEvaluateMapper;

    /**
     * 查询保中安全评测
     * 
     * @param evaluateId 保中安全评测主键
     * @return 保中安全评测
     */
    @Override
    public DuringInsuranceEvaluate selectDuringInsuranceEvaluateByEvaluateId(Long evaluateId)
    {
        return duringInsuranceEvaluateMapper.selectDuringInsuranceEvaluateByEvaluateId(evaluateId);
    }

    /**
     * 查询保中安全评测列表
     * 
     * @param duringInsuranceEvaluate 保中安全评测
     * @return 保中安全评测
     */
    @Override
    public List<DuringInsuranceEvaluate> selectDuringInsuranceEvaluateList(DuringInsuranceEvaluate duringInsuranceEvaluate)
    {
        return duringInsuranceEvaluateMapper.selectDuringInsuranceEvaluateList(duringInsuranceEvaluate);
    }

    /**
     * 新增保中安全评测
     * 
     * @param duringInsuranceEvaluate 保中安全评测
     * @return 结果
     */
    @Override
    public int insertDuringInsuranceEvaluate(DuringInsuranceEvaluate duringInsuranceEvaluate)
    {
        return duringInsuranceEvaluateMapper.insertDuringInsuranceEvaluate(duringInsuranceEvaluate);
    }

    /**
     * 修改保中安全评测
     * 
     * @param duringInsuranceEvaluate 保中安全评测
     * @return 结果
     */
    @Override
    public int updateDuringInsuranceEvaluate(DuringInsuranceEvaluate duringInsuranceEvaluate)
    {
        return duringInsuranceEvaluateMapper.updateDuringInsuranceEvaluate(duringInsuranceEvaluate);
    }

    /**
     * 批量删除保中安全评测
     * 
     * @param evaluateIds 需要删除的保中安全评测主键
     * @return 结果
     */
    @Override
    public int deleteDuringInsuranceEvaluateByEvaluateIds(Long[] evaluateIds)
    {
        return duringInsuranceEvaluateMapper.deleteDuringInsuranceEvaluateByEvaluateIds(evaluateIds);
    }

    /**
     * 删除保中安全评测信息
     * 
     * @param evaluateId 保中安全评测主键
     * @return 结果
     */
    @Override
    public int deleteDuringInsuranceEvaluateByEvaluateId(Long evaluateId)
    {
        return duringInsuranceEvaluateMapper.deleteDuringInsuranceEvaluateByEvaluateId(evaluateId);
    }
}
